 
-----------------------------
Generating Binomial N samples
p =  0.3 N =  100
Number of Samples =  2500000
  
  Generating Binomial Distribution samples.
  Date and time plus nanoseconds
Thu Jun 19 16:11:29 EDT 2014
128367571
  
[1] 0.3
[1] 100
[1] "Absolute difference of empirical moments from theoretical ones:"
[1]   -0.0030164   -0.1974100   -9.7728932 -434.3438644
[1] "Relative difference of empirical moments from theoretical ones:"
[1] -0.0001005467 -0.0002143431 -0.0003381811 -0.0004691929
[1] "Absolute difference of empirical central moments from theoretical ones:"
[1] -8.085408e-17 -1.643510e-02  3.961130e-02 -1.738797e+00
[1] "Relative difference of empirical central moments from theoretical ones (except first):"
[1] -1.784484e-05  1.370709e-06 -1.878307e-06
                         test    P.value KS.test
1                  Chi Square 0.30564547  Passed
2            Likelihood Ratio 0.30564547  Passed
3               Freeman-Tukey 0.05554665  Passed
4 Power Divergence (lambda=2) 0.36267870  Passed
 
-----------------------------
Taking first  1000000 samples
p =  0.3 N =  100
 
[1] 0.3
[1] 100
[1] "Absolute difference of empirical moments from theoretical ones:"
[1]  -0.000390  -0.025882  -1.412682 -74.131738
[1] "Relative difference of empirical moments from theoretical ones:"
[1] -1.300000e-05 -2.810206e-05 -4.888444e-05 -8.007961e-05
[1] "Absolute difference of empirical central moments from theoretical ones:"
[1] -5.536549e-16 -2.482152e-03 -1.117349e-01 -2.239787e+00

	One-sample Kolmogorov-Smirnov test

data:  bin.unif
D = 0.0004, p-value = 0.3434
alternative hypothesis: two-sided

